package www.com.zhongge.binarytree;

import java.util.List;

/**
 * @ClassName TestBinTree
 * @Description TODO 测试二叉树
 * @Author 笨忠
 * @Date 2025/7/28 10:37
 * @Version 1.0
 */
public class TestBinTree {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.createBinaryTree();

        List<Character> list = binaryTree.preorderTraversal(root);
        System.out.println(list);

        List<List<Character>> ret = binaryTree.levelOrder(root);
        System.out.println(ret);

        System.out.println(binaryTree.isCompleteTree(root));
    }
}
